<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
//后台路由文件
require_once  app_path('Http/Route').'/admin.php';


Route::get('/', function () {
    return view('welcome');
});
//基本路由,加载后台页面
Route::get('/welcome', function () {
	return view('admin.welcome');
});


//加载后台主页面
// Route::get("/admin","Admin\IndexController@index");

//加载后台登陆页面,路由
Route::get("/admin/login","Admin\LoginController@login");
Route::post("/admin/doLogin","Admin\LoginController@doLogin");

//隐私控制器
Route::post("hello/login","Home\IndexController@index");

//前台登录注册
// 认证路由...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');
// 注册路由...
Route::get('auth/register', 'Auth\AuthController@getRegister');
Route::post('auth/register', 'Auth\AuthController@postRegister');





	
